{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<form id="J_FormNotice" action="/AcpIncubator/add_equipment" method="post">
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>配套设备名：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="xlarge" name="equipment_name" id="equipment_name">
            <span class="fi-help-text hide"></span>
        </div>
    </div>

    <!-- <div class="formitems inline">
         <label class="fi-name">来源：</label>
         <div class="form-controls">
             <input type="text" placeholder="" name="notice_source" id="notice_source">
         </div>
     </div>-->


    <!--<div class="formitems inline">
        <label class="fi-name">园区封面图：</label>
        <div class="form-controls">
            <ul class="fi-imgslist">
                <li class="fi-imgslist-item pic hide">
                    <div class="pic-wrap">
                        <img id="J_Preview" class="pic-preview" />
                    </div>
                    <input type="hidden" name="img_url" data-id="" id="J_ImgUrl" />
                    <a href="javascript:;" class="del" id="J_Del" title="删除这张图"><i class="gicon-remove"></i></a>
                    <img src="__IMAGES__/popup-loading.gif" id="J_AjaxLoading" class="pic-loading" style="width: 32px; height: 32px;" />
                    <div class="pic-mask" id="J_Mask"></div>
                </li>
                <li class="fi-imgslist-item">
                    <a href="javascript:;" class="add" title="上传一张新的图片" id="J_Uploader">+</a>
                </li>
            </ul>
            <span class="fi-help-text">园区的缩略图，暂时只支持上传单张2M以内JPEG,PNG,GIF格式图片</span>
        </div>
    </div>-->
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>排序号：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="xlarge" name="sort" id="sort">
            <span class="fi-help-text hide"></span>
        </div>
    </div>
    {upload_image_widget($pic_data)}


    <input type="hidden" name="opt" value="add">
    <div class="formitems inline">
        <label class="fi-name"></label>
        <div class="form-controls">
            <input type="hidden" name="incubator_id" value="{$incubator_id}">
            <button type="submit" class="btn btn-blue"><i class="gicon-check white"></i>保存</button>
        </div>
    </div>
</form>
{/block}

{block name="js"}
<!-- 编辑器 -->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=BQLHGlffjbXC30bFDcpIQkHIkaxKBBe6"></script>
<script src="__KD__/kindeditor.js?version={$version}" > </script>
<script src="__ACPJS__/AcpItem/add_item_step3.js?version={$version}"></script>
<script charset="utf-8" src="__KD__/kindeditor.js?version={$version}" > </script>
<script charset="utf-8" src="__KD__/lang/zh_CN.js?version={$version}" > </script>
<script type="text/javascript" src="__JS__/jquery/ajaxupload.3.5.js?version={$version}"></script>
<script type="text/javascript" src="__ACPJS__/AcpNotice/notice_save.js?version={$version}"></script>
<script>

</script>
<!--<script type="text/javascript" src="__JS__/jquery/jquery.min.js"></script>-->
{literal}
<script>
    $('#province').change(function () {
        var province_id = $("#province").find('option:selected').val();
        console.log(province_id);
        $.ajax({
            type:'post',
            url: '/AcpIncubator/getcity',
            data: {province_id: province_id},
            dataType:'json',
            success: function(data){
                //console.log(data);
                var len =data.length;
                var i=0;
                var html='';
                for(i=0;i<len;i++){
                    html+= ' <option value="'+data[i].city_id +'">'+data[i].city_name+'</option>';
                }
                $("#city").html(html);
            }
        });
    });

</script>
{/literal}
<!--<script type="text/javascript" src="__JS__/jquery/jquery.min.js"></script>-->
{/block}

{block name="css"}
<link rel="stylesheet" href="__KD__/themes/default/default.css" />
<link rel="stylesheet" href="/Public/Css/acp/AcpNotice/add_notice.css"  type="text/css"/>
{/block}


